
# -*- coding: utf-8 -*-
# @Time    : 2016-12-07 16:00
# @Author  : wzb<wangzhibin_x@foxmail.com>



from pymouse import PyMouse
from win32api import GetSystemMetrics
import random
import time

m = PyMouse()
m.position()

width = GetSystemMetrics(0)
heigth = GetSystemMetrics(1)

m.move(200, 200)
while True:
    x = random.randint(0, width)
    y = random.randint(0, heigth)
    m.move(x, y)
    time.sleep(random.randint(1, 3))

